from threading import Thread


class TabBase:
    def __init__(self, ttk, style, notebook, name):
        self.ttk = ttk
        self.style = style
        self.notebook = notebook
        self.name = name

    def thread_it(self, func, *args):
        """
        将函数打包进线程
        """
        # 创建
        Thread(target=func, args=args, daemon=True).start()
        # 守护
        # t.daemon = True
        # t.setDaemon(True)
        # 启动
